import request from '../request';

export default {
    // 获取所有宝可梦（分页）
    getAllPokemon(page = 1, limit = 10) {
        return request.get('/api/pokemon_en', { params: { page, limit } });
    },

    // 根据 ID 获取单个宝可梦
    getPokemonById(id) {
        return request.get(`/api/pokemon_en/${id}`);
    },

    // 模糊搜索宝可梦
    searchPokemon(name) {
        return request.get(`/api/pokemon_en/search/${name}`);
    }
};